<?php

use app\common\lib\Redis;
use \think\Db;

class CommonHelper
{
    public static function getAbout($class ='about', $action="gsjj"){
        $data = Db::name('about')
            ->where('action',$action)
            ->where('class',$class)
            ->find();
        return $data;
    }

    public static function getPartner(){
        return Db::name('cooperative')
            ->field('imageUrl')
            ->select();
    }

}